package com.itnoob.base;

import com.itnoob.base.coffee.LongBlack;
import com.itnoob.base.coffee.Drink;
import com.itnoob.base.decoratorclass.Milk;
import com.itnoob.base.decoratorclass.Soy;

public class CoffeeBar {
    public static void main(String[] args) {

        //牛奶装饰咖啡
        //点一份LonBlack
        Drink longBlack = new LongBlack();
        System.out.println(longBlack.cost());
        System.out.println(longBlack.getDes());
        //2 加入牛奶
        Milk milk = new Milk(longBlack);
        System.out.println(milk.cost());
        System.out.println(milk.getDes());

        Soy soy = new Soy(longBlack);

    }
}

